package com.xxx.jsonrpc;

/**
 * 接口实现类
 */
public class DemoServiceImpl implements DemoService {

	public DemoBean getDemo(String code, String msg) {
		System.out.println("getDemo(), code:" + code + ",msg:" + msg);
		DemoBean bean = new DemoBean();
		bean.setCode(Integer.parseInt(code));
		bean.setMsg(msg);
		return bean;
	}

	public Integer getInteger(Integer code) {
		System.out.println("getInt(), code:" + code);
		return code;
	}

	public String getString(String msg) {
		System.out.println("getString(), msg:" + msg);
		return msg;
	}

	public void doSomething() {
		System.out.println("do something");
	}

}
